<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>15-对象创建方式</title>
	</head>
	<body>
		<script type="text/javascript">
			var obj = {
				uid:1,
				username:'xml',
				password:'123456',
				addtime:'2022-04-08',
				sayhi:function(){
					console.log('hello');
				}
			};
			
			//取值
			console.log(obj.uid+obj.username+obj.password);
			obj.sayhi();
			
			
			
		</script>
	</body>
</html>
